<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>15-判断偶数还是奇数</title>
	</head>
	<body>
		<script type="text/javascript">
			var number = prompt('请输入值');
			if(number%2==0){
				alert("偶数");
			}else{
				alert("奇数");
			}
		</script>
	</body>
</html>
